package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品附件表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_prod_atta")
public class ProdAtta implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "atta_id", type = IdType.AUTO)
    private Integer attaId;

    /**
     * 商品ID
     */
    @TableField(value = "prod_id")
    private Integer prodId;

    /**
     * 商品视频
     */
    @TableField(value = "atta_video")
    private String attaVideo;

    /**
     * 定时上架标识;0立即上架1定时上架
     */
    @TableField(value = "up_flag")
    private Integer upFlag;

    /**
     * 定时上架时间
     */
    @TableField(value = "up_time")
    private Date upTime;

    /**
     * 定时下架标识;0立即下架1定时下架
     */
    @TableField(value = "down_flag")
    private Integer downFlag;

    /**
     * 定时下架时间
     */
    @TableField(value = "down_time")
    private Date downTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 轮播图片
     */
    @TableField(value = "atta_images")
    private String attaImages;

    @TableField(exist = false)
    private List<AttaItem> attaList;

    @Data
    public static class AttaItem {
        private String url;
    }
}